package com.ggmall.service.impl;

import com.ggmall.entities.Payment;
import com.ggmall.mapper.PaymentMapper;
import com.ggmall.service.PaymentService;
import jakarta.annotation.Resource;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

@Service
public class PaymentServiceImpl implements PaymentService
{
    @Resource
    private PaymentMapper paymentMapper;

    public int create(Payment payment)
    {
        return paymentMapper.create(payment);
    }

    public Payment getPaymentById(@Param("id") Long id)
    {
        return paymentMapper.getPaymentById(id);
    }
}
